import request from '@/utils/request'

// 查询资金下发明细列表
export function listDetail(query) {
    return request({
        url: '/fund/detail/list',
        method: 'get',
        params: query
    })
}

// 查询资金下发明细详细
export function getDetail(id) {
    return request({
        url: '/fund/detail/' + id,
        method: 'get'
    })
}

// 新增资金下发明细
export function addDetail(data) {
    return request({
        url: '/fund/detail',
        method: 'post',
        data: data
    })
}

// 修改资金下发明细
export function updateDetail(data) {
    return request({
        url: '/fund/detail',
        method: 'put',
        data: data
    })
}

// 删除资金下发明细
export function delDetail(id) {
    return request({
        url: '/fund/detail/' + id,
        method: 'delete'
    })
}

// 导出资金下发明细
export function exportDetail(query) {
    return request({
        url: '/fund/detail/export',
        method: 'get',
        params: query
    })
}

// 查询资金下发明细详细
export function checkDetail(id) {
  return request({
    url: '/fund/detail/check?id=' + id,
    method: 'get'
  })
}



